package com.qm.console.service;

import com.qm.console.model.UserInfo;

import java.util.List;

/**
 * Created by Edison.hu on 18/7/25.
 */
public interface UserInfoService {
    /**通过username查找用户信息;*/
    UserInfo findByUsername(String username);

    UserInfo findByUid(int uid);

    int addNewUser(String password, String username);

    int delUserByUsername(String username);

    void delUserByUid(int uid);

    List<UserInfo> getUserInfoList(int offset, int pageSize, String username, String startTime, String endTime,
                                   String orderBy, String orderType);

    int getUserInfoCount(String username, String startTime, String endTime);

    int resetPassword(UserInfo userInfo, String password);

    Boolean UpdatePassword(UserInfo userInfo, String oldPassword, String newPassword);

}
